﻿using System.Collections.Generic;
using TSU.FAMC.ComputerEngineering.Classes.OrandTrees.Basis;

namespace TSU.FAMC.ComputerEngineering.Classes.OrandTrees
{
    /// <summary>
    /// Input/output interface for ORNAND-tree elements.
    /// </summary>
    public class ElementInterface : List<TreeElement>
    {
        // Methods

        /// <summary>
        /// Default constructor.
        /// </summary>
        public ElementInterface()
        {
        }

        /// <summary>
        /// Copy constructor.
        /// </summary>
        /// <param name="elementInterface">ElementInterface to copy values from.</param>
        public ElementInterface(IEnumerable<TreeElement> elementInterface)
        {
            foreach (var pin in elementInterface)
            {
                Add(pin);
            }
        }
    }
}
